package com.emou.service.impl;

import com.emou.bean.User;
import com.emou.dao.UserDao;
import com.emou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2021/2/1.
 *
 * @author Emou
 */
@Service
public class UserServiceImp implements UserService {

    @Autowired
    private UserDao userDao;



    @Override
    public User login(User user) {
        User login = userDao.login(user);
        return login;
    }

    @Override
    public boolean register(User user) {
        boolean isRegister = userDao.register(user);
        return isRegister;
    }
}
